package com.java.springboot.multi.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName: EnvConfig
 * @Description: TODO
 * @Author: LiuJiaTao
 * @CreateDate: 2022-03-14
 * @Version : V1.0.0
 */
@Component
// 读取配置文件 config 开头的配置
@ConfigurationProperties(prefix = "config")
public class EnvConfig {
    private String envCode;
    private String envLabel;

    public String getEnvCode() {
        return envCode;
    }

    public void setEnvCode(String envCode) {
        this.envCode = envCode;
    }

    public String getEnvLabel() {
        return envLabel;
    }

    public void setEnvLabel(String envLabel) {
        this.envLabel = envLabel;
    }

    @Override
    public String toString() {
        return "EnvConfig{" +
                "envCode='" + envCode + '\'' +
                ", envLabel='" + envLabel + '\'' +
                '}';
    }
}
